import axios from "./axios";

export const get: (url: string, params: any) => any = (url: string, params: any) => axios({ method: "get", url, params });

export const post = (url: string, data: any) => axios({ method: "post", url, data });

export const patch = (url: string, data: any) => axios({ method: "patch", url, data });

export const del = (url: string, data?: any) => axios({ method: "delete", url, data });